package demo03;

public class Test {
    public static void main(String[] args) {
        //基础班学生空参
        BasicStudent basicStudent = new BasicStudent();
        basicStudent.setAge(12);
        basicStudent.setName("X-man");
        basicStudent.eat();
        basicStudent.study();
        //基础班学生全参
        BasicStudent basicStudent1 = new BasicStudent("x-man", 15);
        basicStudent1.eat();
        basicStudent1.study();

        System.out.println("-------------------------------------------------");

        //就业班学生空参
        WorkStudent workStudent = new WorkStudent();
        workStudent.setAge(12);
        workStudent.setName("jack");
        workStudent.eat();
        workStudent.study();
        workStudent.speakEnglish();
        //就业班学生全参
        WorkStudent workStudent1 = new WorkStudent("tom", 45);
        workStudent1.speakEnglish();
        workStudent1.study();
        workStudent1.eat();

        System.out.println("-------------------------------------------------");
        //基础班老师空参
        BasicTeacher basicTeacher = new BasicTeacher();
        basicTeacher.setAge(12);
        basicTeacher.setName("teacher-M");
        basicTeacher.setSalary(1212);
        basicTeacher.teach();
        basicTeacher.eat();

        //基础班老师全参
        BasicTeacher basicTeacher1 = new BasicTeacher("teacher-X", 45, 1554);
        basicTeacher1.teach();
        basicTeacher1.eat();

        //就业班老师空参
        System.out.println("-------------------------------------------------");
        WorkTeacher workTeacher = new WorkTeacher();
        workTeacher.setAge(12);
        workTeacher.setName("spider");
        workTeacher.setSalary(1314);
        workTeacher.teach();
        workTeacher.eat();
        workTeacher.speakEnglish();

        //就业班老师全参
        WorkTeacher workTeacher1 = new WorkTeacher("saber", 12, 1212);
        workTeacher1.teach();
        workTeacher1.eat();
        workTeacher1.speakEnglish();

    }
}
